﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:Imagin.Controls.Common"
    xmlns:Common="http://imagin.tech/imagin/common">
    <Style TargetType="{x:Type local:FlagCheckView}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:FlagCheckView}">
                    <ItemsControl
                        ItemsPanel="{TemplateBinding ItemsPanel}"
                        ItemsSource="{Binding Items, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
                        ItemTemplate="{TemplateBinding ItemTemplate}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>